{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Census income classification with Keras\n", "\n", "To download a copy of this notebook visit [github](https://github.com/shap/shap/tree/master/notebooks).\n", "\n", "This notebook showcases the use of kernel and coalition explainer for explaining neural networks. " ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "c:\\programming\\shap\\.venv\\lib\\site-packages\\tqdm\\auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n", " from .autonotebook import tqdm as notebook_tqdm\n" ] }, { "data": { "text/html": [ "
| \n", " | Age | \n", "Workclass | \n", "Education-Num | \n", "Marital Status | \n", "Occupation | \n", "Relationship | \n", "Race | \n", "Sex | \n", "Capital Gain | \n", "Capital Loss | \n", "Hours per week | \n", "Country | \n", "
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 299 | \n", "-0.042641 | \n", "4 | \n", "-0.420053 | \n", "0 | \n", "12 | \n", "0 | \n", "4 | \n", "1 | \n", "-0.145918 | \n", "-0.216656 | \n", "3.204112 | \n", "39 | \n", "